<{capture name="header"}>
<{css app="ome" src="ome.css"}>
<{css app="ome" src="style.css"}>
<{script src="coms/autocompleter.js" app="desktop"}>
<{script src="coms/LodopFuncs.js" app="desktop"}>
<{/capture}> 
<{if $data}>
<style>
    
</style>
<a href="javascript:prn()">打印预览</a>
<div id="div_print">
    <{assign var="key" value="1"}>
    <{foreach from=$data key=k item=vo}>
    
    <{foreach from=$vo key=kk item=voo}>
        <{assign var="totol_num" value=0 }>
        <{if $key == 1 }>
            <{assign var="key" value="0"}>
            <div >
        <{elseif}>
            <div style="page-break-before:always">
        <{/if}>
        <table width="90%" border="1" cellpadding="0" cellspacing="0" style='border-color:#999999 ; width:90%;border-collapse:collapse;table-layout:fixed;'>

            <tr height="53" style='height:39.75pt;mso-height-source:userset;mso-height-alt:795;'>
                <td class="xl69" height="53" colspan="6" style='height:39.75pt;border-right:none;border-bottom:none;text-align: center;' x:str>发货通知单</td>
                
            </tr>
            <tr height="34" class="xl65" style='height:25.50pt;mso-height-source:userset;mso-height-alt:510;'>
                <td class="xl65" height="34" colspan="3" style='height:25.50pt;' x:str>通知时间：<{$voo.date}></td>
                <td class="xl65"  style='mso-ignore:colspan;'></td>
                <td class="xl65" colspan="2" style='mso-ignore:colspan;' x:str>发货通知单号：<{$k}></td>
            </tr>
            <tr height="34" class="xl65" style='height:25.50pt;mso-height-source:userset;mso-height-alt:510;'>
                <td class="xl70" height="34" style='height:25.50pt;' x:str>销售类别：</td>
                <td class="xl70" colspan="2" style='mso-ignore:colspan;' x:str>■单一包装 □组合包装</td>
                <td class="xl70" >送货方式：<{$voo.deliverytype}></td>
                <td class="xl70" colspan="2">快递公司：<{$voo.logi_name}></td> 
            </tr>
            <tr height="34" class="xl65" style='height:25.50pt;mso-height-source:userset;mso-height-alt:510;'>
                <td class="xl70" height="34" style='height:25.50pt;' x:str>产品编码：</td>
                <td class="xl65" x:str><{$kk}></td>
                <td class="xl65"></td>
                <td class="xl70"></td>
                <td class="xl65" colspan="2" style='mso-ignore:colspan;'></td>
            </tr>
            <tr height="34" class="xl66" style='height:25.50pt;mso-height-source:userset;mso-height-alt:510;boder:1px;'>
                <td class="xl71" height="34" style='height:25.50pt;' x:str>序号</td>
                <td class="xl71" x:str>客户编号</td>
                <td class="xl71" x:str>店铺/客户名称</td>
                <td class="xl71" x:str>单位</td>
                <td class="xl71" x:str>数 量</td>
                <td class="xl71" x:str>备 注</td>
            </tr>
            <{assign var="data_i" value=0 }>
            <{foreach from=$voo.data item=vooo}>
            <{assign var="data_i" value=$data_i+1 }>
            <{assign var="totol_num" value=$totol_num+$vooo.number }>
            <tr height="34" class="xl65" style='height:25.50pt;mso-height-source:userset;mso-height-alt:510;'>
                <td class="xl71" height="34" style='height:25.50pt;' x:num><{$data_i}></td>
                <td class="xl72" x:num><{$vooo.AXCustomer}></td>
                <td class="xl73" x:str><{$vooo.name}></td>
                <td class="xl71" x:str><{$vooo.unit}></td>
                <td class="xl73" align="right" x:num><{$vooo.number}></td>
                <td class="xl73"></td>
            </tr>
            <{/foreach}>
            
            <tr height="34" class="xl65" style='height:25.50pt;mso-height-source:userset;mso-height-alt:510;'>
                <td class="xl71" height="34" style='height:25.50pt;' x:str>小计:</td>
                <td class="xl71"></td>
                <td class="xl71"></td>
                <td class="xl73"></td>
                <td class="xl73" align="right"  x:num><{$totol_num}></td>
                <td class="xl73"></td>
            </tr>
            <tr height="36" style='height:27.00pt;mso-height-source:userset;mso-height-alt:540;'>
                <td class="xl67" height="36" colspan="2" style='height:27.00pt;mso-ignore:colspan;'></td>
                <td class="xl68" x:str>仓库：</td>
                <td class="xl68" x:str>电商组：</td>
                <td class="xl68"></td>
                <td class="xl68" x:str>卢瑶</td>
            </tr>
        </table>

    </div>

    <{/foreach}>

    <{/foreach}>
</div>
<{/if}>

    <script language="javascript" type="text/javascript">   
        function prn() {
            var oldstr=document.body.innerHTML;
            document.body.innerHTML = document.getElementById('div_print').innerHTML; 
            window.print();  
            document.body.innerHTML = oldstr;  
            return false;  
        };
    </script>